import sys
import spacy
from spacy import displacy
# import zh_core_web_sm

def main(canshu1):
    nlp = spacy.load("zh_core_web_sm")
    with open('test.txt', encoding='utf8') as f:
        text = f.read()
    # text = '增加用户数量和使用粘性，提升平台活跃度，提高平台在广告谈判中的议价能力'
    text = 'Apple is looking at buying U.K startup for $1 billion'
    doc = nlp(text)
    for token in doc:
        print(displacy.render(doc, style='dep'))

main("test")

# main(sys.argv[1])
sys.exit("你就想")